package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    private Integer id;
    private String name;
    private  String username;
    private  Integer age;
    private String sex;
    private String  phone;
    private  String address;
    @JsonFormat(pattern = "yyyy-mm-dd",timezone = "GMT+8")
    private Date  createtime;
    @JsonFormat(pattern = "yyyy-mm-dd",timezone = "GMT+8")
    private Date  updatetime;

}
